// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import '@/assets/css/global.css'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);

import qs from 'qs'
import axios from 'axios'
Vue.prototype.$qs = qs
Vue.prototype.$axios = axios

import VueCookies from 'vue-cookies'
Vue.use(VueCookies)

import base from './base'
Vue.use(base);

import interface_s from '@/api/api.js'
 
Vue.prototype.HOST = process.env.NODE_ENV === 'production' ? 'http://192.168.1.248:9099' : 'api' 

//获取用户信息。
var userID = Vue.prototype.$cookies.get('userID') || 123456789
Vue.prototype.echo(interface_s.querys,userID);

Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  components: { App },
  template: '<App/>'
})
